package com.zhou.enumx;

public enum BookStatus {
    IN_STOCK("有库存",1),
    NO_STOCK("无库存",0),
    MAINTENANCE("维护中",-1);

    private String name;
    private Integer sign;

    BookStatus(String name,Integer sign){
        this.name = name;
        this.sign = sign;
    }

    public int getSign(){
        return this.sign;
    }
    public String getName(){
        return this.name;
    }
}
